const path = require("path");

module.exports = {
  // publicPath: "./",
  // 开发环境配置。设置端口号，代理跨域
  devServer: {
    host: '192.168.1.104',
    port: 8080, // 端口号
    // https: true, // https:{type:Boolean}
    open: true, //配置自动启动浏览器
    allowedHosts: "all",
    disableHostCheck:true,
    // 开发配置。跨域
    proxy: {
      "/system": {
        target: "http://152.136.171.128:8088",
        logLevel: 'debug',
        changeOrigin: true,
        // pathRewrite: {
        //   "^/api": "/"
        // }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        "@": path.resolve(__dirname, "src")
      }
    }
  }
};
